/*
 * @Author: hechengfei h349187021@163.com
 * @Date: 2022-08-10 14:46:45
 * @LastEditors: hechengfei h349187021@163.com
 * @LastEditTime: 2022-08-23 15:43:35
 * @FilePath: \xiangmu\src\components\contractmanagement\TodayAdd.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import ContractTable from './ContractTable'
import GetPages from './GetPages';
import { inject, observer } from 'mobx-react'
import '../../assets/css/contract/GetPages.css'
function TodayAdd(props) {
    const onPageChange = (page, size) => {
        props.contractStore.currentPage = page
        props.contractStore.pageSize = size
    }
    return (
        <div className='ContractFather'>
            <ContractTable />
            <GetPages total={props.contractStore.total} onPageChange={onPageChange} className='GetPages' />

        </div>
    )
}
export default inject('contractStore')(observer(TodayAdd))
